/**
 * Created with JetBrains WebStorm.
 * User: rendong
 * Date: 12-8-30
 * Time: 下午10:14
 * :$
 */

function Main(stage){
    this.stage = stage;
    this.init();
}

/**
 *
 * @type {gStage}
 */
Main.prototype.stage = null;

Main.prototype.init = function(){
    var bg = new gSprite();
    bg.setBgImage("image/bg.jpg");
    this.stage.addChild(bg);

    for(var row=0; row < 3; row++)
    for(var j=0; j < 14; j++){
        var sp = new gSprite();
        sp.x = j * 70;
        sp.y = row * 200;
        sp.setSpriteImage("image/effect/",".png", 1, 27);
        this.stage.addChild(sp);
    }
}